#include <errno.h>
#include <stdio.h>
#include <mntent.h>
#include <sys/mount.h>
#include <limits.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>

#include <pthread.h>

void *fn1(void *param);

int main(void)
{
	pthread_t wait;
	printf("hehe1\n");
	pthread_create(&wait,NULL,fn1,NULL);
	printf("hehe2\n");
	void *temp;
	pthread_join(wait,&temp);
	return 0;
}

void *fn1(void *param)
 {
     char mounted_path[16];

	strcpy(mounted_path, "/dev/sda1");

	struct stat st;
	if(lstat(mounted_path, &st))
	{
		printf("mount_user:%s is not exist\n", mounted_path);
		return 0;
	}
											   
	printf("ok,hehe...\n");
	sleep(3);
	printf("finish...\n");
	
	return 0;
}
														 
